import { objectType } from "nexus";
import { UserProfile } from "nexus-prisma";

/// Define a User profile entity.
export const UserProfileEntity = objectType({
    name: UserProfile.$name,
    description: UserProfile.$description,
    definition(t) {
        t.field(UserProfile.userId);
        t.field(UserProfile.user);
        t.field(UserProfile.name);
        t.field(UserProfile.bio);
        t.field(UserProfile.gender);
        t.field(UserProfile.updatedAt);
    }
});
